package cc.orange.adapter;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import cc.orange.entity.MainPopuDataEntity;
import cc.orange.utils.CircleImageView;

import cc.orange.R;


/**
 * Created by CM on 2022/10/25.
 */

public class HomePopupAdapter extends BaseQuickAdapter<MainPopuDataEntity.Data, BaseViewHolder> {
    public HomePopupAdapter(@Nullable List<MainPopuDataEntity.Data> data) {
        super(R.layout.item_hpopu, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, MainPopuDataEntity.Data item) {
//        CircleImageView item_popu_img2 = helper.getView(R.id.item_popu_img2);
        CircleImageView item_popu_img1 = helper.getView(R.id.item_popu_img1);
        Glide.with(mContext).load(item.getHeadPhoto())
                .into(item_popu_img1);
    }
}
